<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			*{margin: 0;padding: 0;}
			#btn{
				display: block;
				padding: 25px;
				text-align: center;
				margin: 50px auto;
				border: 1px solid #CC0000;
			}
			
		</style>
	</head>
	<body>
		<button id="btn">点击我取50到60随机一个值</button>
		<script>
			//取 随机任意两个数之间的值
			btn.onclick = function(){
				alert(randram(50,60));
			}
			function randram(star,end){
				return Math.floor(Math.random()*(end-star)+star);
			}
		</script>
	</body>
</html>
